import {USER_GET_DETAIL} from './constants';

const initState = {
   user: {}
}

const reducer = (state = initState, action) => {
  switch (action.type) {
    case USER_GET_DETAIL:
      return Object.assign({}, state, action.payload);
    default:
      return state;
  }
};

export default reducer;
